package org.test;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.test.aop.AOPTest;
import org.test.bean.Student;
import org.test.config.MainConfiguration;

public class Main
{
    public static void main(String[] args)
    {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MainConfiguration.class);
        System.out.println("Hello and welcome!");
        Student student= (Student) context.getBean(Student.class);
        Student student1= (Student) context.getBean(Student.class);
        System.out.println(student);
        System.out.println(student1);
        student.play();
    }
}
